package com.example.demo.domain;

import com.example.demo.service.ItemDictOperation;

import java.util.List;

public class HbdItemDictDO {

    private Integer itemCode;
    private String  itemName;
    private String itemValue;
    private Integer parentCode;

    private List<HbdItemDictDO> children;

    public void opeate(ItemDictOperation operation){
        operation.doExecute(this);
    }

    public Integer getParentCode() {
        return parentCode;
    }

    public void setParentCode(Integer parentCode) {
        this.parentCode = parentCode;
    }

    public Integer getItemCode() {
        return itemCode;
    }

    public void setItemCode(Integer itemCode) {
        this.itemCode = itemCode;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getItemValue() {
        return itemValue;
    }

    public void setItemValue(String itemValue) {
        this.itemValue = itemValue;
    }

    public List<HbdItemDictDO> getChildren() {
        return children;
    }

    public void setChildren(List<HbdItemDictDO> children) {
        this.children = children;
    }
}
